package com.silverbox.shopper.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.Employee;
import com.silverbox.shopper.entity.EmployeeAuthRecord;
import com.silverbox.shopper.entity.extend.EmployeeExtend;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);
    
    /**
     * 根据桌台号获取绑定的员工id
     * @param tableNo
     * @return
     */
    EmployeeExtend getRelTableEmployee(Integer tableNo);


	List<Employee> findEmployeeByMobile(@Param("parentId")Integer parentId, @Param("shopperId")Integer shopperId, @Param("phone")String phone);
	
	/**
	 * 获取员工信息
	 * @param shopId
	 * @param storeId
	 * @param source
	 * @param appId
	 * @param buyerId
	 * @param date 
	 * @return
	 */
	Employee getEmployeeEntry(@Param("shopId") Integer shopId, @Param("storeId") Integer storeId, @Param("source")String source, 
			@Param("appId") String appId,@Param("buyerId") String buyerId,@Param("date") String date);

	
}